/**
 * 科室模型
 */
const db=require('./index');
const Schema=db.Schema;
const DepartmentSchema=new Schema(
    {  
        name:{ type:String ,required :true },// 科室名称
        state:{type:String,require:true},// 状态：启用，禁用
        grade:{type:String,require:true},// 科室等级
        son:[String],// 子科室
        doctors:[String],// 关联的医生
        id:String,//父部门
    }
);
const Department=db.model('Department',DepartmentSchema);

module.exports = Department;


